<h1>Select hotspot area</h1>
<?=Html::anchor((isset($backUrl) ? $backUrl : Request::$controller . 'hotspots/' . $section . '/' . (isset($image['id']) ? $image['id'] . '/' : '')), '&larr; go back to hotspot list')?>
<br /><br />
Select point-by-point active area for current hotspot.
You can also drag selected area or delete point (click on it to delete).<br />
When you done click &quot;Save area&quot; button in the left top corner.
<br /><br />
<?php
	$size = Image::getSize(Model::factory('directory')->imagePath($image, 'hotmap'));
?>
<script type="text/javascript">
	swfobject.embedSWF("/flash/hotspots.swf", "hotmap", "100%", "100%", "9.0.0", "/flash/express-install.swf", {mode:"dashboard", currentId:<?=$currentId?>, xmlFile:"/hotmap/xml/<?=$image['section']?>/<?=$image['alias']?>/"});
</script>
<div style="width:<?=$size[0]?>px; height:<?=$size[1]?>px">
	<div id="hotmap">
		<img src="<?=Model::factory('directory')->imagePath($image, 'hotmap')?>" width="<?=$size[0]?>" height="<?=$size[1]?>" alt="<?=Html::chars($image['name'])?>"/>
	</div>
</div>
<div class="clear"></div>